@extends('common.layout')
@section('title','往期视频-详情')
@section('video_detail','class=current')
@section('content')
<div class="past_top clearfix">
    <div class="past_left">
        <div class="past_left_title">{{$oLive->name}}</div>
        <div class="past_left_video">
            <a href="#"><img src="{{$oLive->image}}" /></a>
        </div>
        <div class="online_class_share">
            <span>分享到：</span>
            <a href="javascript:weixin()"><img src="/assets/images/icon_weixin.jpg" /></a>
        </div>
    </div>
    <div class="past_right">
        <div class="past_intro">
            <div class="title_box">本期简介</div>
            <div class="past_intro_body">
                <p>{{$oLive->info}}</p>
            </div>
        </div>
        <div class="past_other">
            <div class="past_other_title">其他讲堂</div>
            <div class="past_other_list">
                <div class="past_other_ship">
                    <a href="/video_detail/{{$otherLive->id}}"><img src="{{$otherLive->image}}" /></a>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="past_export">
    <div class="title_box">本期嘉宾</div>
    <div class="export_this_list">
        <div class="export_this_ship clearfix">
            <div class="left_export"><img src="{{$oLive->expert->img}}" /></div>
            <div class="right_export">
                <div class="export_base">
                    <p class="name">{{$oLive->expert->name}}</p>
                    <p><b>科室：</b>{{$oLive->expert->department}}</p>
                    <p><b>职称：</b>{{$oLive->expert->position}}</p>
                </div>
                <div class="export_this_intro">
                    <p>{{$oLive->expert->introduce}}</p>
                    <a href="/mien_detail/{{$oLive->expert->id}}">【详情】</a>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
require_once 'phpqrcode.php';
$value = '直播';
$errorCorrectionLevel = 'L';
$matrixPointSize = 5;
$filename = 'qrcode/qrcode.png';
QRcode::png($value, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
$QR = $filename;
$QR = imagecreatefromstring(file_get_contents($QR));
imagepng($QR, 'qrcode.png');
imagedestroy($QR);
?>
<script type="text/javascript" src="/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="http://malsup.github.io/min/jquery.blockUI.min.js"></script>
<script>
    function weixin() {
        $.blockUI({ message:'<div>  <a href="javascript:jiechu()" class="export_pop_close">x</a></div> <img src="/qrcode/qrcode.png">'});
    }
    function jiechu(){
        $.unblockUI();
    }
</script>

@endsection
